<?php include_once 'group_header.php';?>

  <div class="main_left">
		<?php if ($view=='index'){ ?>
			<?php foreach( $all_list as $value){ ?>
			<div class="mygroup">
				<h2><?php echo $value['title'];?>(<?php echo $value['row_nums']; ?>)</h2>
				<?php if ($value['row_nums'] > 0 ){ ?>
				<div class="mg_box">
					<ul class="g_plist3">
				<?php foreach( $value['list'] as $data ){ ?>
				<li>
                	<a href="index.php?mod=qun&qid=<?php echo $data['qid'];?>" title="<?php echo $data['name'];?>" class="pic"><img src="<?php echo $data['icon'];?>" /></a>
                	<h3><a href="index.php?mod=qun&qid=<?php echo $data['qid'];?>" title="<?php echo $data['name'];?>"><?php echo $data['name'];?></a></h3>
                    <p>群号:<?php echo $data['qid'];?></p>
                    <div class="info">
                    	<span class="rb"><a href="#"><?php echo $data['thread_num'];?></a><br />发言</span>
                        <span class="rb"><a href="#"><?php echo $data['member_num'];?></a><br />成员</span>
                        <span><a href="#"><?php echo $data['topic_num'];?></a><br />话题 </span>
                    </div>
				</li>
				<?php } ?>
					</ul>
					<div class="float_both"></div>
					<div style="text-align:right;"><a href="index.php?mod=qun&code=profile&view=<?php echo $value['code'];?>">查看全部>></a></div>
				</div>
				<?php } ?>
			</div>
			<?php } ?>
		<?php }else{ ?>

			<div class="mygroup">
				<h2><?php echo $title;?>(<?php echo $qun_list['row_nums'] ; ?>)</h2>
				<?php if ($qun_list['row_nums'] > 0){ ?>
				<div class="mg_box">
					<ul class="g_plist3">
					<?php foreach( $qun_list['list'] as $value ){ ?>
						<li>
							<a href="index.php?mod=qun&qid=<?php echo $value['qid']; ?>" title="<?php echo $value['name'];?>" class="pic"><img src="<?php echo $value['icon'];?>" /></a>
							<h3><a href="index.php?mod=qun&qid=<?php echo $value['qid']; ?>" title="<?php echo $value['name']; ?>"><?php echo $value['name']; ?></a></h3>
							<p>群号:<?php echo $data['qid']; ?></p>
							<div class="info">
								<span class="rb"><a href="#">123</a><br />发言</span>
								<span class="rb"><a href="#">321</a><br />成员</span>
								<span><a href="#">112</a><br />话题 </span>
							</div>
						</li>
						<?php } ?>
					</ul>
					<div class="float_both"></div>
				</div>
				<?php } ?>
			</div>		
		<?php } ?>
    </div>

	
<?php include_once 'group_right.php';?>
